package com.red.star.wechat.data.mappers;

import com.red.star.wechat.data.core.base.MyMapper;
import com.red.star.wechat.data.entity.Tag;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 标签
 *
 * @author K25
 */
public interface TagMapper extends MyMapper<Tag> {

    /**
     * 根据type查询集合
     *
     * @param type
     * @return
     */
    @Select(value = "select * from t_tag t where t.type = #{type} order by t.update_time asc")
    List<Tag> findByType(@Param(value = "type") String type);
}
